package cn.itsource.itsource.domain;

import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Data
@Table(name="t_order_adopt")
public class OrderAdopt {
    @Id
    private Long id;
    private String digest;
    private Integer state;
    private Double price;
    private String orderSn;
    private String paySn;
    private java.util.Date lastPayTime;
    private java.util.Date lastConfirmTime;
    private Long petId;
    private Long userId;
    private Long shopId;
    private Long addressId;

    //这个字段，不在表中，是额外新增的，所以需要注解，作用：忽略该属性即该属性不需要与表字段对应
    //TODO 根据业务分析，发现保存到t_order_address时，需要的参数较多，所以建议直接将前端选择的用户地址对象传过来
    @Transient
    private UserAddress userAddress;

}
